<template>
  <div>
    <el-breadcrumb separator="/">
      <template v-for="item in breadcrumbs" :key="item.name">
        <el-breadcrumb-item :to="{ path: item.path }">{{
          item.name
        }}</el-breadcrumb-item>
      </template>
    </el-breadcrumb>
  </div>
</template>

<script setup lang="ts">
import { PropType, defineProps } from 'vue'
import { IBreadType } from '@/base-ui/breadcrumb/types'

const props = defineProps({
  breadcrumbs: {
    type: Array as PropType<IBreadType>,
    default: () => []
  }
})
</script>

<style scoped></style>
